<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>提交订单</title>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/head.css" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/footer.css" />
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/go.css" />
	</head>
	<body>
    <%@ include file="menu.jsp" %>
		<div class="public_b">
			<form action="" method="post">
				<div class="w1200">
					<div class="h2">订单信息</div>
					<!--地址选择-->
					<div class="o_o_content">
						<h2 class="part_h2">
						</h2>
						<div class="new_addr">
							<div class="ncc-form-default">
								<form action="" method="post">

									<input value="buy" name="act" type="hidden">
									<input value="add_addr" name="op" type="hidden">
									<input name="form_submit" value="ok" type="hidden">
									<dl>
										<dt><i class="required">*</i>收货人姓名：</dt>
										<dd>
                     <p>${orders.name}</p>
										</dd>
									</dl>
									<dl>
										<dt><i class="required">*</i>所在地区：</dt>
										<dd>
											<div id="region">
                      <p>${orders.addr}</p>

											</div>
										</dd>
									</dl>
									<dl>
										<dt> <i class="required">*</i>手机号码：</dt>
										<dd>
                      <p>${orders.phone}</p>
										</dd>
									</dl>

								</form>
							</div>
						</div>
						<div style="display: none;" class="addr_list" id="addr_list">
							<ul>
								<li class="addr_new">
									<div class="btn_new_addr" nc_type="addr" id="add_addr">添加新地址</div>
								</li>
							</ul>
						</div>
						<div class="o_o_part o_o_part3">
							<h2 class="part_h2">3&nbsp;商品清单<a class="a_return_car" href="${pageContext.request.contextPath}/click.do"> &lt; 返回购物车</a></h2>
							<div class="oder_shop">
								<!--shoptitle-->
								<div class="shop_tit">
									<div class="cart_checkbox">
										<span>商品名称</span>
									</div>
									<div class="column cart_standard">规格</div>
									<div class="column t_price">单价(元)</div>
									<div class="column t_quantity">数量</div>
									<div class="column t_sum">小计(元)</div>
								</div>
								<!--shoptitle-->
								<!--shoplist-->

								<div class="item_list">
                  <c:forEach var="o" items="${orders.orderItemList}">
                  <div class="item_form">
                    <div class="cell p_checkbox"></div>

                    <div class="cell p_goods">
                      <div class="goods_item">
                        <div class="p_imgs">
                          <a target="_blank" href="">
                            <img src="${pageContext.request.contextPath}/${o.car.carimages}"  style="width: 62px;height: 62px;"></a>
                        </div>
                        <div class="item_msg">
                          <div class="p_border_bottom">
                            <div class="p_name">
                              <a target="_blank" href="http://www.happigo.com/item-0-174196.html">${o.product.pname}</a>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>

                    <div class="cell p_standard">
                      <p class="p_g_standard p_border_bottom">${o.count}</p>
                    </div>
                    <div class="cell p_price p_border_bottom">
                      <p class="p_prices2">${o.product["shop_price"]}</p>
                    </div>
                    <div class="cell p_quantity">
                      <div class="quantity_form p_border_bottom">x${o.count}</div>
                    </div>
                    <div class="cell p_sum p_border_bottom">
                      <strong>${o.count*o.product["shop_price"]}</strong>
                    </div>
                  </div>
                  </c:forEach>
								</div>

								<div class="btnsure_bg">
									<div class="sureorder">
										<div class="jine">应付总额：<span class="fwxh_30">￥</span><span class="span_m s_order_money">${orders.total}</span></div>
										<a class="un_btn_sure" id="btn_sure" href="${pageContext.request.contextPath}/payment.do?oid=${orders.oid}">提交订单</a>
									</div>
								</div>
							</div>
						</div>
						<!--商品-->
					</div>
					<!--地址选择end-->
				</div>
			</form>
		</div>
	    <!--底部公用-->
    <%@ include file="bottom.jsp" %>
	    <!--底部end-->
	</body>
</html>
